<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>{$this.pageTitle}</title>
        <meta name="keywords" content="<?php echo $this->pageKeywords;?>" />
        <meta name="description" content="<?=$this->pageContent?>"/>
        <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0">
        <meta http-equiv="Last-Modified" content="Sat, 14 Mar 2015 11:45:17 +0800" />
            
        <link rel="shortcut icon" href="/static/images/favicon.ico"> 
        {if !empty($css)}
            {foreach from=$css key=key item=value}
                <link rel="stylesheet" href="/static/css/{$value}/{$key}.css">
            {/foreach}
        {/if}

        <script type="text/javascript" src="/static/js/jquery-1.8.3.min.js"></script>
        
        {if !empty($this->js)}
            {foreach from=$this->js key=key item=value}
                <script type="text/javascript" src="/static/js/{$value}/{$key}.js"></script>
            {/foreach}
        {/if}

        <!-- 新 Bootstrap 核心 CSS 文件 -->
        <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">

        <!-- 可选的Bootstrap主题文件（一般不用引入） -->
        <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">

        <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
        <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>

        <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
        <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
        </head>
        <body>
            {assign var="raction" value=$smarty.get.controller|cat:$smarty.get.action}
            <div class="container">
                <div class="row">
                    <ul class="nav nav-tabs">
                        <li role="presentation" {if in_array($raction, array('index', 'indexindex', ''))}class="active"{/if} ><a href="/">管理序列号</a></li>
                        <li role="presentation" {if in_array($raction, array('indexcreate'))}class="active"{/if}><a href="/index/create">生成序列号</a></li>
                        <li role="presentation" {if in_array($raction, array('serialindex'))}class="active"{/if}><a href="/serial/index">序列号注册</a></li>
                        {if empty($smarty.session.user)}
                        <li role="presentation" {if in_array($raction, array('memberindex'))}class="active"{/if}><a href="/member/index">登录</a></li>
                        {else}
                        <li role="presentation"><a href="#">{$smarty.session.user.name}</a></li>
                        <li role="presentation" {if in_array($raction, array('memberview'))}class="active"{/if}><a href="/member/view">用户管理</a></li>
                        <li role="presentation"><a href="/member/logout">退出</a></li>
                        {/if}
                    </ul>
                </div>